package utils;

import java.util.concurrent.TimeUnit;

import okhttp3.OkHttpClient;
import okhttp3.Request;


public class OkhttpUtil {

    public static int serversLoadTimes = 0;
    public static String responseData = null;
    public static final OkHttpClient client = new OkHttpClient.Builder()
            .connectTimeout(10, TimeUnit.SECONDS)
            .readTimeout(20,TimeUnit.SECONDS)
            .build();

    public static void SendRequestWithPost(Request request,OkHttpCallback callback){
        client.newCall(request).enqueue(callback);
    }


}
